<?php include"shared/head.php";?>
<?php

include"shared/log.php";


$tid=$_GET['tid'];

include "shared/conn.php";
mysqli_select_db( $conn,"personalterm");
mysqli_query($conn, "set names 'utf-8");

$sql_delete="DELETE * FROM `term` WHERE `id`='{$tid}'";
$result=mysqli_query($conn,$sql_delete);

if ($result != false)
    {
        echo "<script>alert('删除成功！')</script>";
        echo "<script>location='index.php'</script>";
    }
else {
    echo "<script>alert('删除失败！请检查代码!')</script>";
    echo "<script>location='index.php'</script>";
}


?>
<?php include"shared/foot.php";?>
